package com.example.monitorsms;

import android.content.Intent;
import android.os.Bundle;
import android.os.Handler;

import com.example.monitorsms.utils.SPUtils;

public class StartActivity extends BaseActivity {

    @Override
    protected int getLayoutId() {
        return R.layout.activity_start;
    }

    @Override
    protected void main(Bundle savedInstanceState) {
        super.main(savedInstanceState);
//        UuidUtils.isUuidExit();
        new Handler().postDelayed(() -> {
            boolean userType = (boolean) SPUtils.get(mContext, "userType", false);
//            if (userType) {
                startActivity(new Intent(mContext, MainActivity.class));
//            startActivity(new Intent(mContext, DemoActivtiy.class));
//            } else {
//            startActivity(new Intent(mContext, LoginActivity.class));
//            }
            finish();
        }, 2000);
    }
}
